from commonModelData.CommonModelData import AModelData
from commonModelData.impl.ModelData14N0 import ModelData14N0
from commonModelData.impl.ModelData14N1 import ModelData14N1
from utils import MumberUtils


class ModelData14N(AModelData):
    def getModelData(self):
        if MumberUtils.strToInt(self.BLogin.luckNum) <= 13 \
                and MumberUtils.strToInt(self.BLogin.luckNum)%10<=4: #14-0 小尾
            model = ModelData14N1()
        elif MumberUtils.strToInt(self.BLogin.luckNum) >=14 \
                and MumberUtils.strToInt(self.BLogin.luckNum)%10>=5: # 14-1 大尾
            model = ModelData14N0()

        model.setBlogin(self.BLogin)